<!--
 * @Author: WangZhiYu <w19165802736@163.com>
 * @Date: 2025-04-18 13:59:24
 * @LastEditTime: 2025-04-19 10:59:04
 * @LastEditors: WangZhiYu <w19165802736@163.com>
 * @Descripttion: 
-->
<template>
  <div class="descriptions">
    <div v-if="Boolean(title)" class="descriptions-title">
      {{ title }}
      <slot name="bianji"></slot>
    </div>
    <div class="descriptions-view" :xs="10" :sm="8" :md="6">
      <el-row class="descriptions-row">
        <slot v-if="$slots.default" />
        <div v-else style="text-align: center; color: grey;">{{ $t('message.emptyData') }}</div>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: 'el-description',
  props: {
    title: {
      type: String,
      required: false,
      default: '',
    },
  },
};
</script>

<style scoped>
.descriptions {
}
.descriptions-title {
  margin-bottom: 20px;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  display: flex;
}
.descriptions-view {
  width: 100%;
  overflow: hidden;
}
.descriptions-view table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
</style>
